package com.cya.forumproject.dao;

import com.cya.forumproject.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    int insert(User row);

    int insertSelective(User row);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User row);

    int updateByPrimaryKey(User row);
//    @Param表示传入sql语句中的参数名
    User selectByUserName(@Param("username")String username);
}